package demo.entity;

import java.sql.Date;

public class Reader {
	private String id;
	private String password;
	private String name;
	private String sex;
	private Date birth;
	private String pro;
	private String grade;
	private String tel;
	private String email;
	
	public Reader() {
		
	}
	
	public Reader(String id,String password,String name,String sex,Date birth,String pro,String grade,String tel,String email) {
		super();
		this.id=id;
		this.password=password;
		this.name=name;
		this.sex=sex;
		this.birth=birth;
		this.pro=pro;
		this.grade=grade;
		this.tel=tel;
		this.email=email;
	}
	
	public String getId() {
		return id;
	}
	
	public void setId(String id) {
		this.id=id;
	}
	
	public String getPassword() {
		return password;
	}
	
	public void setPassword(String password) {
		this.password=password;
	}
	
	public String getName() {
		return name;
	}
	
	public void setName(String name) {
		this.name=name;
	}
	
	public String getSex() {
		return sex;
	}
	
	public void setSex(String sex) {
		this.sex=sex;
	}
	
	public Date getBirth() {
		return birth;
	}

	public void setBirth(Date birth) {
		this.birth = birth;
	}
	
	public String getPro() {
		return pro;
	}
	
	public void setPro(String pro) {
		this.pro=pro;
	}
	
	public String getGrade() {
		return grade;
	}
	
	public void setGrade(String grade) {
		this.grade=grade;
	}
	
	public String getTel() {
		return tel;
	}
	
	public void setTel(String tel) {
		this.tel=tel;
	}
	
	public String getEmail() {
		return email;
	}
	
	public void setEmail(String email) {
		this.email=email;
	}
	
	
	public String toString() {
		StringBuffer stringBuffer = new StringBuffer();
		stringBuffer.append(String.format("%s, %s, %s, %s, %s, %s, %s, %s, %s\n", id, password,name,sex,birth,pro,grade,tel,email));
		return stringBuffer.toString();
	}
}
	
	
	
	
	
	
	


